package org.genntii.warehousesystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.genntii.warehousesystem.domain.entity.GoodsWarehouse;
import org.genntii.warehousesystem.domain.vo.*;

import java.util.List;

public interface GoodsWarehouseService extends IService<GoodsWarehouse> {

    // 创建库存信息，数量默认为0
    void create(int goodsId, int warehouseId);

    List<SimpleGoodsVO> selectGoodsByWarehouse(int warehouseId);

    // 返回货品各个仓库及其库存
    List<GoodsWarehouseVO> selectByGoods(int goodsId);

    // 进货
    void procurement(int goodsId,int warehouseId, int operatorId, int num, float price);

    //展示进货列表信息
    List<ProcurementVO> listProcurement(int page);

    // 调货
    void restock(int goodsId, int fromWarehouseId, int toWarehouseId, int num, int operatorId);

    // 调货记录
    List<RestockVO> listRestock(int page);

    // 发货
    void shipment(Long orderCode, int warehouseId, int operatorId, int goodsId, int num);

    // 发货记录
    List<ShipmentVO> listShipment(int page);

}
